package com.beijiteshop.shop.model.api.response

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/19 17:29
 * @Description 购物车列表item商品实体类
 */
data class ShoppingCartBean(
    var bus_GoodsID: String,
    var bus_ShopCartID: String,
    var color: String,
    var count: Int,
    var createTime: String,
    var goodName: String,
    var isPutaway: String,
    var isSeckill: String,
    var isSellout: String,
    var marketPrice: String,
    var onSale: String,
    var path: String,
    var sellingPrice: String,
    var specification: String,
    var vip: Boolean
){
    /**
     * 是否售罄
     */
    val sellOut: Boolean
    get() {
        return isSellout == "1"
    }

    /**
     * 是否下架
     */
    val undercarriage: Boolean
    get() {
        return isPutaway == "0"
    }
}